package com.ocom.mqsimple.business.consumedetail.impl;


import com.ocom.mqsimple.business.consumedetail.ConsumeDetailExportProductService;
import com.ocom.mqsimple.utils.ConsumeDetailExportProductUitl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class ConsumeDetailExportProductServiceImpl implements ConsumeDetailExportProductService {
	private final Logger log = LoggerFactory.getLogger(ConsumeDetailExportProductServiceImpl.class);

	@Autowired
	private ConsumeDetailExportProductUitl consumeDetailExportProductUitl;

	/**
	 * 处理人员图片
	 */
	public void handle(String msg) {

		log.info(" ConsumeDetailExport-mq-开始【{}】",msg);
		//消息队列调用减库存接口  优先级越高越先执行完

		consumeDetailExportProductUitl.consumeDetailExport(msg,15);

        log.info(" ConsumeDetailExport-mq-完成【{}】",msg);

	}

}
